package com.code.springboot3.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.code.springboot3.model.entity.BigUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface BigUserMapper extends BaseMapper<BigUser> {
    @Select("select * from public.big_user where id = #{id}")
    BigUser getUserById(int id);
    @Select("select * from public.big_user where username = #{username}")
    BigUser selectByUsername(String username);
}
